# -- coding: utf-8 --


from flask import Flask,render_template
import sys
app = Flask(__name__)
@app.route('/')
def hello_world():
    goods = [{'name': '怪味少女开衫外套春秋韩版学生bf原宿宽松运动风2018新款秋装上衣'},
             {'name': 'A7seven 复古百搭牛仔外套女秋季2018新款宽松显瘦休闲夹克衫上衣'},
             {'name': '黑色时尚西装外套女春秋中长款2018新款韩版休闲薄款'},
             {'name': 'HAVE RICE饭馆颜值超耐打复古牛仔外套女短款夹克衫上衣'}]
    return render_template('index.html', **locals())


def do_index_class(index):
    if index % 3 == 0:
        return 'line'
    else:
        return ''

app.add_template_filter(do_index_class, 'index_class')

if __name__ == '__main__':
    app.run()